package com.labManage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data                    /*自动生成set、get、tostring*/
@NoArgsConstructor       /*无参构造*/
@AllArgsConstructor      /*全参构造*/
@TableName("permition")  /*与数据库表做映射*/
public class Permition {
    private Long id;

    private Integer parentId;

    private String permitionName;

    private String permitionDesc;

    private String permitionUrl;

    private String permitionCode;

    private Integer permitionType;

    private Date createTime;

    private Date modifyTime;

    private String createPerson;

    private String modifyPerson;

    private String permitionBindId;

    private boolean open = true;

    private List<Permition> children;

    private String permitionIcon;

    @Override
    public String toString() {
        return "Permition{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", permitionName='" + permitionName + '\'' +
                ", permitionDesc='" + permitionDesc + '\'' +
                ", permitionUrl='" + permitionUrl + '\'' +
                ", permitionCode='" + permitionCode + '\'' +
                ", permitionType=" + permitionType +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                ", createPerson='" + createPerson + '\'' +
                ", modifyPerson='" + modifyPerson + '\'' +
                ", permitionBindId='" + permitionBindId + '\'' +
                ", open=" + open +
                ", children=" + children +
                ", permitionIcon='" + permitionIcon + '\'' +
                '}';
    }

    public String getPermitionBindId() {
        return permitionBindId;
    }

    public void setPermitionBindId(String permitionBindId) {
        this.permitionBindId = permitionBindId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getPermitionName() {
        return permitionName;
    }

    public void setPermitionName(String permitionName) {
        this.permitionName = permitionName;
    }

    public String getPermitionDesc() {
        return permitionDesc;
    }

    public void setPermitionDesc(String permitionDesc) {
        this.permitionDesc = permitionDesc;
    }

    public String getPermitionUrl() {
        return permitionUrl;
    }

    public void setPermitionUrl(String permitionUrl) {
        this.permitionUrl = permitionUrl;
    }

    public String getPermitionCode() {
        return permitionCode;
    }

    public void setPermitionCode(String permitionCode) {
        this.permitionCode = permitionCode;
    }

    public Integer getPermitionType() {
        return permitionType;
    }

    public void setPermitionType(Integer permitionType) {
        this.permitionType = permitionType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getCreatePerson() {
        return createPerson;
    }

    public void setCreatePerson(String createPerson) {
        this.createPerson = createPerson;
    }

    public String getModifyPerson() {
        return modifyPerson;
    }

    public void setModifyPerson(String modifyPerson) {
        this.modifyPerson = modifyPerson;
    }

    public boolean isOpen() {
        return open;
    }

    public void setOpen(boolean open) {
        this.open = open;
    }

    public List<Permition> getChildren() {
        return children;
    }

    public void setChildren(List<Permition> children) {
        this.children = children;
    }

    public String getPermitionIcon() {
        return permitionIcon;
    }

    public void setPermitionIcon(String permitionIcon) {
        this.permitionIcon = permitionIcon;
    }
}